package IOperation;

import BOOK.Book;
import BOOK.BookList;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/14
 * Time: 20:30
 * Description: No Description
 */
public class Find implements IOperation{
    public void work(BookList bookList) {
        System.out.println("显示图书");

        int index = bookList.getCount();
        System.out.println("图书列表如下：");
        for (int i = 0; i < index; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}